package com.test.demo.main.fragment;


import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.test.demo.R;
import com.test.demo.base.BaseBottomFragment;
import com.test.demo.bean.RepostBean;
import com.test.demo.main.adapter.RepostAdapter;

import java.util.ArrayList;
/** 转发 */
public class RepostFragment extends BaseBottomFragment {

    RecyclerView recycler_view;

    ArrayList datas = new ArrayList<RepostBean>();

    RepostAdapter mAdapter;

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_repost;
    }

    @Override
    protected void findViews() {
        recycler_view = findViewByIds(R.id.recycler_view);
    }

    @Override
    public void initGetData() {
        datas.clear();
        datas.add(new RepostBean("热爱和平的Tea","23分钟前","请大佬进群聊聊，这里有很多水友求带带呗", R.drawable.logo_head));
        datas.add(new RepostBean("热爱和平的Tea","23分钟前","这皮肤真好看",R.drawable.logo_head));
        datas.add(new RepostBean("热爱和平的Tea","23分钟前","转发了该动态",R.drawable.logo_head));

        mAdapter = new RepostAdapter(datas);
        recycler_view.setLayoutManager(new LinearLayoutManager(getActivity()));
        recycler_view.setAdapter(mAdapter);
    }

    @Override
    protected void init() {

    }

    @Override
    protected void widgetListener() {

    }
}
